package com.example.order.domain.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private Long id; // 订单ID
    private BigDecimal totalFee; // 总金额
    private BigDecimal postFee;// 邮费
    private BigDecimal payMoney;// 应付金额
    private Integer paymentType; // 1-微信,2-支付宝,3-余额
    private Long userId; // 用户ID 
    private Integer addressId; // 收货地址ID 
    private String buyerMessage; // 订单备注
    private Integer status; // 1-未付款,2-已付款未发货,3-已发货未确认,4-交易成功,5-订单关闭,6-已评价 
    private LocalDateTime createTime; // 创建时间
    private LocalDateTime payTime; // 支付时间 
    private LocalDateTime consignTime; // 发货时间
    private LocalDateTime updateTime; // 更新时间 
}